import { getBannerAPI } from '@/apis/category.js'
import { onMounted, ref } from 'vue'

export function useBanner(){
    const bannerList = ref([])
    const getBannerList = async () => {
        const { data: res } = await getBannerAPI()
        bannerList.value = res.result
    }
    onMounted(() => {
        getBannerList()
    })
    return{
        bannerList
    }
}